package com.kylin.module.shop.forms;

import java.util.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

public class ProductForm extends ActionForm{
     private Long id;
     private String name;
	 private Integer  quantity;
	 private Double  price;
	 private String  introduce;
	 private FormFile  imgFile;
	 private String  language;
	 private String  createdby;
	 private Date  createdon;
	 private String  lastupdatedby;
	 private Date  lastupdatedon;
	 private Short  active;
	 private Integer  ordering;
	 private Integer  hits;
	 	 
    private Long currency;
    private Long unit;
    private Long catproduct;
    private Long company;
    
	public Short getActive() {
		return active;
	}
	public void setActive(Short active) {
		this.active = active;
	}
	public Long getCatproduct() {
		return catproduct;
	}
	public void setCatproduct(Long catproduct) {
		this.catproduct = catproduct;
	}
	public Long getCompany() {
		return company;
	}
	public void setCompany(Long company) {
		this.company = company;
	}
	public String getCreatedby() {
		return createdby;
	}
	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}
	public Date getCreatedon() {
		return createdon;
	}
	public void setCreatedon(Date createdon) {
		this.createdon = createdon;
	}
	public Long getCurrency() {
		return currency;
	}
	public void setCurrency(Long currency) {
		this.currency = currency;
	}
	public Integer getHits() {
		return hits;
	}
	public void setHits(Integer hits) {
		this.hits = hits;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getIntroduce() {
		return introduce;
	}
	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getLastupdatedby() {
		return lastupdatedby;
	}
	public void setLastupdatedby(String lastupdatedby) {
		this.lastupdatedby = lastupdatedby;
	}
	public Date getLastupdatedon() {
		return lastupdatedon;
	}
	public void setLastupdatedon(Date lastupdatedon) {
		this.lastupdatedon = lastupdatedon;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getOrdering() {
		return ordering;
	}
	public void setOrdering(Integer ordering) {
		this.ordering = ordering;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public Long getUnit() {
		return unit;
	}
	public void setUnit(Long unit) {
		this.unit = unit;
	}

	public String toString(){
		StringBuffer sb = new StringBuffer("------- ProductForm --------");
		sb.append("\n id            ="+ id            );
		sb.append("\n name          ="+ name          );
		sb.append("\n quantity      ="+ quantity      );
		sb.append("\n price         ="+ price         );
		sb.append("\n introduce     ="+ introduce     );
		sb.append("\n imgFile       ="+ imgFile        );
		sb.append("\n language      ="+ language      );
		sb.append("\n createdby     ="+ createdby     );
		sb.append("\n createdon     ="+ createdon     );
		sb.append("\n lastupdatedby ="+ lastupdatedby );
		sb.append("\n lastupdatedon ="+ lastupdatedon );
		sb.append("\n active        ="+ active        );
		sb.append("\n ordering      ="+ ordering      );
		sb.append("\n hits          ="+ hits          );
		sb.append("\n currency      ="+ currency      );
		sb.append("\n unit          ="+ unit          );
		sb.append("\n catproduct    ="+ catproduct    );
		sb.append("\n company       ="+ company       );
		return sb.toString();

	}
	public FormFile getImgFile() {
		return imgFile;
	}
	public void setImgFile(FormFile imgFile) {
		this.imgFile = imgFile;
	}
}
